import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'

// moment 时间插件
var moment = require('moment');
Vue.use(moment);

// 配置element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 配置VueHighcharts
import VueHighcharts from 'vue-highcharts';
Vue.use(VueHighcharts);


if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  template: '<App/>'
}).$mount('#app')
